package com.t.dianliangdemo;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import androidx.legacy.content.WakefulBroadcastReceiver;

public class MyWakefulReceiver extends WakefulBroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.e("MyWakefulReceiver", "我启动了");
        Intent service = new Intent(context, MyIntentService.class);
        startWakefulService(context, service);
    }

}